home *** CD-ROM | disk | FTP | other *** search
/ Cream of the Crop 22 / Cream of the Crop 22.iso / windows / wdj1096.zip / ZOLMAN.ZIP / MDIICONS.ZIP / ICONSDOC.CPP < prev    next >
C/C++ Source or Header  |  1996-02-16  |  2KB  |  81 lines

  1. // iconsdoc.cpp : implementation of the CIconsDoc class
  2. //
  3.  
  4. #include "stdafx.h"
  5. #include "icons.h"
  6.  
  7. #include "iconsdoc.h"
  8.  
  9. #ifdef _DEBUG
  10. #undef THIS_FILE
  11. static char BASED_CODE THIS_FILE[] = __FILE__;
  12. #endif
  13.  
  14. /////////////////////////////////////////////////////////////////////////////
  15. // CIconsDoc
  16.  
  17. IMPLEMENT_DYNCREATE(CIconsDoc, CDocument)
  18.  
  19. BEGIN_MESSAGE_MAP(CIconsDoc, CDocument)
  20.     //{{AFX_MSG_MAP(CIconsDoc)
  21.         // NOTE - the ClassWizard will add and remove mapping macros here.
  22.         //    DO NOT EDIT what you see in these blocks of generated code!
  23.     //}}AFX_MSG_MAP
  24. END_MESSAGE_MAP()
  25.  
  26. /////////////////////////////////////////////////////////////////////////////
  27. // CIconsDoc construction/destruction
  28.  
  29. CIconsDoc::CIconsDoc()
  30. {
  31.     // TODO: add one-time construction code here
  32. }
  33.  
  34. CIconsDoc::~CIconsDoc()
  35. {
  36. }
  37.  
  38. BOOL CIconsDoc::OnNewDocument()
  39. {
  40.     if (!CDocument::OnNewDocument())
  41.         return FALSE;
  42.  
  43.     // TODO: add reinitialization code here
  44.     // (SDI documents will reuse this document)
  45.  
  46.     return TRUE;
  47. }
  48.  
  49. /////////////////////////////////////////////////////////////////////////////
  50. // CIconsDoc serialization
  51.  
  52. void CIconsDoc::Serialize(CArchive& ar)
  53. {
  54.     if (ar.IsStoring())
  55.     {
  56.         // TODO: add storing code here
  57.     }
  58.     else
  59.     {
  60.         // TODO: add loading code here
  61.     }
  62. }
  63.  
  64. /////////////////////////////////////////////////////////////////////////////
  65. // CIconsDoc diagnostics
  66.  
  67. #ifdef _DEBUG
  68. void CIconsDoc::AssertValid() const
  69. {
  70.     CDocument::AssertValid();
  71. }
  72.  
  73. void CIconsDoc::Dump(CDumpContext& dc) const
  74. {
  75.     CDocument::Dump(dc);
  76. }
  77. #endif //_DEBUG
  78.  
  79. /////////////////////////////////////////////////////////////////////////////
  80. // CIconsDoc commands
  81.